<div class="title">
    <!--span class="f-right"><a href="#" class="ico-rss">RSS feed</a></span-->
    <h4>
<?php 
if ($is_own) {
  echo 'Deine ', $direction == 'in' ? '' : 'vergebenen';
}
else {
  echo $user['User']['name'], 's ', $direction == 'in' ? '' : 'vergebene';
}
?>
 Punkte</h4>
</div> <!-- /title -->
        
<ul class="ul-list nomb">
<?php
foreach ($points as $point) {
  if ($direction == 'in') {
    $name = $point['Point']['sender_id'] ? $html->link($point['Sender']['name'], array('controller' => 'users', 'action' => 'view', $point['Sender']['id'])) : $point['Point']['sender_name'];
  }
  else {
    $name = $html->link($point['User']['name'], array('controller' => 'users', 'action' => 'view', $point['User']['id']));
  }
?>
            <li><!--span class="f-right"><a href="#" class="ico-comment">45 comments</a></span--> <?php 
  if (FALSE && $point['Point']['visible'] == 0) {
    echo '<span class="invisible"><ul class="claim"><li>', $html->link('veröffentlichen', array('controller' => 'points', 'action' => 'claim', $point['Point']['code'])), '</li></ul>'; 
  } 
  else {
    echo '<span>';
  }
?><span class="date"><?php echo strftime('%d.%m.%Y', $point['Point']['created']); ?></span> <strong><?php echo $name; ?></strong>: <?php echo mb_substr($point['Point']['text'], 0, 50, 'UTF8'), strlen($point['Point']['text']) > 50 ? '&hellip;' : ''; ?></span></li>
<?php
}
?>
</ul>
<?php echo $this->element('paginator', array('url' => array($user['User']['id']))); ?>
